<?php /* Template_ 2.2.4 2011/07/05 18:33:44 E:\PHP\www\sagapo\_DATA\template_\default\admin\board\modify.html 000006755 */ 
$TPL_skin_1=empty($TPL_VAR["skin"])||!is_array($TPL_VAR["skin"])?0:count($TPL_VAR["skin"]);?>
<h2 class="<?php echo $TPL_VAR["module"]?>">게시판 관리</h2>
<section class="default">
	<script>
		$(function() {
			$('#<?php echo $TPL_VAR["module"]?>_add :radio').checkbox({empty:'<?php echo $TPL_VAR["CFG"]->PATH->CSS?>/images/empty.png'});
			$("#<?php echo $TPL_VAR["module"]?>_add").validate();
			
			// checkbox, radio 선택..
			$("input:radio[name='<?php echo $TPL_VAR["module"]?>_category'][value='<?php echo $TPL_VAR["result"]->ba_category?>']").attr("checked","checked");
			$("input:radio[name='<?php echo $TPL_VAR["module"]?>_footlist'][value='<?php echo $TPL_VAR["result"]->ba_footlist?>']").attr("checked","checked");
			$("input:radio[name='<?php echo $TPL_VAR["module"]?>_attach'][value='<?php echo $TPL_VAR["result"]->ba_attach?>']").attr("checked","checked");
			$("#<?php echo $TPL_VAR["module"]?>_attach > option[value='<?php echo $TPL_VAR["result"]->ba_attache?>']").attr("selected", "selected");
		});
	</script>
	<form name="<?php echo $TPL_VAR["module"]?>_add" id="<?php echo $TPL_VAR["module"]?>_add" method="post" action="<?php echo $TPL_VAR["action"]?>/doModify">
		<input type="hidden" name="<?php echo $TPL_VAR["module"]?>_id" value="<?php echo $TPL_VAR["result"]->ba_id?>" />
		<table class="table">
			<caption>
				<?php echo $TPL_VAR["result"]->ba_id?> 게시판 수정
			</caption>
			<colgroup>
				<col class="t_add" />
				<col />
			</colgroup>
			<tbody>
				<tr>
					<th scope="row" class="txt_right br">게시판 아이디</th>
					<td>
						<?php echo $TPL_VAR["result"]->ba_id?>

					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_name">게시판 명</label></th>
					<td><input type="text" name="<?php echo $TPL_VAR["module"]?>_name" id="<?php echo $TPL_VAR["module"]?>_name" class="input_90_pc required" placeholder="게시판 명" value="<?php echo $TPL_VAR["result"]->ba_name?>" /></td>
				</tr>
				<tr class="odd">
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_skin">스킨</label></th>
					<td>
						<select name="<?php echo $TPL_VAR["module"]?>_skin">
<?php if($TPL_skin_1){foreach($TPL_VAR["skin"] as $TPL_V1){?>
							<option value="<?php echo $TPL_V1?>"><?php echo $TPL_V1?></option>
<?php }}?>
						</select>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_category_on">카테고리</label></th>
					<td>
						<input type="radio" name="<?php echo $TPL_VAR["module"]?>_category" id="<?php echo $TPL_VAR["module"]?>_category_on" value="1" checked="checked" />
						<label for="<?php echo $TPL_VAR["module"]?>_category_on">사용</label>
						&nbsp;&nbsp;
						<input type="radio" name="<?php echo $TPL_VAR["module"]?>_category" id="<?php echo $TPL_VAR["module"]?>_category_off" value="0" />
						<label for="<?php echo $TPL_VAR["module"]?>_category_off">미사용</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_footlist_on">하단리스트</label></th>
					<td>
						<input type="radio" name="<?php echo $TPL_VAR["module"]?>_footlist" id="<?php echo $TPL_VAR["module"]?>_footlist_on" value="1" checked="checked" />
						<label for="<?php echo $TPL_VAR["module"]?>_footlist_on">사용</label>
						&nbsp;&nbsp;
						<input type="radio" name="<?php echo $TPL_VAR["module"]?>_footlist" id="<?php echo $TPL_VAR["module"]?>_footlist_off" value="0" />
						<label for="<?php echo $TPL_VAR["module"]?>_footlist_off">미사용</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_newicontime">새글강조시간</label></th>
					<td>
						<input type="number" name="<?php echo $TPL_VAR["module"]?>_newicontime" id="<?php echo $TPL_VAR["module"]?>_newicontime" class="input_30_px required"  max="168" min="1" value="<?php echo $TPL_VAR["result"]->ba_newicontime?>" />
						시간 단위로 입력해주세요.
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_attach_on">첨부파일</label></th>
					<td>
						<input type="radio" name="<?php echo $TPL_VAR["module"]?>_attach" id="<?php echo $TPL_VAR["module"]?>_attach_on" value="1" checked="checked" />
						<label for="<?php echo $TPL_VAR["module"]?>_attach_on">사용</label>
						&nbsp;&nbsp;
						<input type="radio" name="<?php echo $TPL_VAR["module"]?>_attach" id="<?php echo $TPL_VAR["module"]?>_attach_off" value="0" />
						<label for="<?php echo $TPL_VAR["module"]?>_attach_off">미사용</label>
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_listing">리스트 갯수</label></th>
					<td>
						<input type="number" name="<?php echo $TPL_VAR["module"]?>_listing" id="<?php echo $TPL_VAR["module"]?>_listing" class="input_30_px required" max="30" min="5" value="<?php echo $TPL_VAR["result"]->ba_listingnum?>" />
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_paging">페이징 갯수</label></th>
					<td>
						<input type="number" name="<?php echo $TPL_VAR["module"]?>_paging" id="<?php echo $TPL_VAR["module"]?>_paging" class="input_30_px required" max="25" min="5" value="<?php echo $TPL_VAR["result"]->ba_pagingnum?>" />
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_thumb_width">썸네일 가로</label></th>
					<td>
						<input type="number" name="<?php echo $TPL_VAR["module"]?>_thumb_width" id="<?php echo $TPL_VAR["module"]?>_thumb_width" class="input_50_px required"  max="700" value="<?php echo $TPL_VAR["result"]->ba_thumwidth?>"/> px
					</td>
				</tr>
				<tr>
					<th scope="row" class="txt_right br"><label for="<?php echo $TPL_VAR["module"]?>_thumb_height">썸네일 세로</label></th>
					<td>
						<input type="number" name="<?php echo $TPL_VAR["module"]?>_thumb_height" id="<?php echo $TPL_VAR["module"]?>_thumb_height" class="input_50_px required"  max="700" value="<?php echo $TPL_VAR["result"]->ba_thumwidth?>" /> px
					</td>
				</tr>
			</tbody>
		</table>
		<div class="button_area">
			<button type="submit">전송</button>
			<button type="button" class="cancel" onclick="history.back(-1)">뒤로</button>
		</div>
	</form>
</section>